
import {
  listOrders,
} from "@/api/pending";

export const tableConfig = {
  hasPage: true,
  isLoading: true,
  request: params => {
    return listOrders(params);
  },
  dataParse: res => {
    const resData = res.data.data;
    const data = {
      list: resData.rows,
      total: resData.total
    };
    return data;
  },
  columns: [
    {
      prop: "expand",
      isCustomColumn: true,
    },
    {
      prop: "xmbzNo",
      label: "后台单号",
    },
    {
      prop: "bookerName",
      label: "下单人",
    },
    {
      prop: "bookerPhone",
      label: "下单号码",
    },
    {
      prop: "statusName",
      label: "订单状态",
    },
    {
      prop: "operate",
      label: "操作",
      width: "140px",
      isSlot: true,
    }
  ]
};
